package cn.forward.feign;


import cn.forward.fallback.AppFeignClientFallbackFactory;
import cn.forward.param.AppLoginParam;
import cn.forward.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(value = "cn-forward-service-uaa", path = "app/login", contextId = "AppFeignClient",fallbackFactory = AppFeignClientFallbackFactory.class)
public interface AppFeignClient {

     @PostMapping
     R<Void> sava(@RequestBody @Valid AppLoginParam appLoginParam);

}
